// File generated from our OpenAPI spec by Stainless.

package com.metest.api.models.rest.actuator.metrics

import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import com.metest.api.core.jsonMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class MetricRetrieveByNameResponseTest {

    @Test
    fun create() {
        val metricRetrieveByNameResponse = MetricRetrieveByNameResponse.builder().build()
    }

    @Test
    fun roundtrip() {
        val jsonMapper = jsonMapper()
        val metricRetrieveByNameResponse = MetricRetrieveByNameResponse.builder().build()

        val roundtrippedMetricRetrieveByNameResponse =
            jsonMapper.readValue(
                jsonMapper.writeValueAsString(metricRetrieveByNameResponse),
                jacksonTypeRef<MetricRetrieveByNameResponse>(),
            )

        assertThat(roundtrippedMetricRetrieveByNameResponse).isEqualTo(metricRetrieveByNameResponse)
    }
}
